package com.wwj.server.game.msg;

import com.google.gson.annotations.SerializedName;
import com.wwj.server.game.common.MsgConstants;
import com.wwj.server.model.NetBaseMsg;

/**
 * Created by xya on 17-12-20.
 */
public class UserReconnectMsgAck extends NetBaseMsg {

    private String type = MsgConstants.USER_RECONNECT_ACK;

    @SerializedName("device_id")
    private String deviceId;

    @SerializedName("user_id")
    private String userId;

    private String key;

    private String time;

    private String result;

    public UserReconnectMsgAck() {
    }
    public UserReconnectMsgAck(UserReconnectMsg msg, String result) {
        this.deviceId = msg.getDeviceId();
        this.userId = msg.getUserId();
        this.key = msg.getKey();
        this.result = result;
    }

    public UserReconnectMsgAck(UserReconnectMsg msg,String time, String result) {
        this.deviceId = msg.getDeviceId();
        this.userId = msg.getUserId();
        this.key = msg.getKey();
        this.time = time;
        this.result = result;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }
}
